Type PythonDict<TKey, TValue>
Namespace LostTech.Gradient.BuiltIns
Parent PythonObjectContainer
Interfaces IDictionary<TKey, TValue>, IReadOnlyDictionary<TKey, TValue>
Wraps an instance of Python's dict type
Methods
Properties
Public instance methods
void Add(TKey key, TValue value)
void Clear()
Removes all entries from the dictionary
bool ContainsKey(TKey key)
void CopyTo(KeyValuePair`2[] array, int arrayIndex)
bool Remove(TKey key)
bool TryGetValue(TKey key, TValue& value)
Public properties
int Count get;
Returns the number of entries
TValue Item get; set;
Gets or sets the value for the specified key.
ICollection<TKey> Keys get;
Returns collection of the keys in this dictionary
object PythonObject get;
ICollection<TValue> Values get;
Returns collection of the values in this dictionary